package com.scse.bms.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;


/**
 * @Title: ThemeVO
 * @Author: 吴赠禹
 * @Date: 2021/3/2 9:51
 * @Version: 1.0
 * @Description: TODO
 */


@Getter
@Setter
@ToString
@TableName("t_theme")
public class ThemeVO extends Model<ThemeVO> {

    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 饼图需要value、name字段
     */
    @TableField(exist = false)
    private Integer value;

    private String name;

    /**
     * 以下是关联查询字段（表中不存在，但必须使用）
     * 分别是每个主题图书数量、主题访问量、主题下载量
     */
    @TableField(exist = false)
    private Integer bookNum;

    @TableField(exist = false)
    private Integer visitedCount;

    @TableField(exist = false)
    private Integer downloadCount;


    /**
     * 以下关联查询字段表示年月日均访问量与年月日下载量
     */
    @TableField(exist = false)
    private Integer dayAvg;
    @TableField(exist = false)
    private Integer monAvg;
    @TableField(exist = false)
    private Integer yearAvg;


}
